package com.songlanyun.modules.freighttemplate.dao;

import com.songlanyun.modules.freighttemplate.entity.FreightTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.freighttemplate.model.vo.FreightSlim;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家的物流模板表
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-09 18:03:39
 */
@Mapper
public interface FreightTemplateDao extends BaseMapper<FreightTemplate> {
    FreightTemplate getFTemplateBy(@Param("shopId") Long shopId, @Param("id") Integer id);

    FreightTemplate getFTemplateDefaultBy(Long shopId);

    List<FreightSlim> getSlimList(Long shopId);
}
